package common

// 返回的自定义状态码
const (
	// success
	SUCCESS = 0

	// error
	ERROR              = 1
	ErrorServerSeache  = 10001
	ErrorPageInfo      = 20001
	ErrorInvalidParams = 20002
	ErrorInsert        = 20003
)

//CodeMsg 状态码对应的错误信息
var CodeMsg = map[int]string{
	SUCCESS: "操作成功",

	ERROR:              "操作失败",
	ErrorServerSeache:  "查询错误",
	ErrorPageInfo:      "分页信息参数错误",
	ErrorInvalidParams: "请求参数错误",
	ErrorInsert:        "插入失败",
}
